package com.lupan.dataanalyze.service;

import com.lupan.dataanalyze.dao.VehReportMapper;
import com.lupan.dataanalyze.domain.*;
import com.lupan.dataanalyze.domain.base.BaseParam;
import com.lupan.dataanalyze.domain.base.CycleType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/6/23 14:14
 */
@Service
public class VehReportService {

    @Autowired
    private VehReportMapper vehReportMapper;

    public Long getAllCallLength() {
       return vehReportMapper.getAllCallLength();
    }

    public List<OilMileageVo> oilMileageReport(BaseParam param) {
        return vehReportMapper.oilMileageReport(param);
    }

    public List<OilEmsVersionVo> oilEmsVersionReport(BaseParam param) {
        return vehReportMapper.oilEmsVersionReport(param);
    }

    public List<OilTcmVersionVo> oilTcmVersionReport(BaseParam param) {
        return vehReportMapper.oilTcmVersionReport(param);
    }

    public List<OilEmsTcmVersionVo> oilEmsAndTcmVersionReport(BaseParam param) {
        return vehReportMapper.oilEmsAndTcmVersionReport(param);
    }

    public List<CallinAreaVo> callinAreaReport(CycleType cycleType) {
        return vehReportMapper.callinAreaReport(cycleType);
    }

    public List<MaintenanceVo> maintenanceReport(BaseParam param) {
        return vehReportMapper.maintenanceReport(param);
    }
}
